package web.action;

import com.opensymphony.xwork2.ActionSupport;
import entity.Extract;
import org.apache.struts2.ServletActionContext;

public class CollectAction extends ActionSupport {

    private String file_signal;

    public String getFile_signal() {
        return file_signal;
    }

    public void setFile_signal(String file_signal) {
        this.file_signal = file_signal;
    }

    public String upLoad(){
        Extract extract = (Extract) ServletActionContext.getRequest().getSession().getAttribute("extract");
        if (extract==null){
            return "not_extract";
        }else{
            return "extract";
        }
    }

    public String upLoadByCrawler(){

        return "crawler";
    }

    public String upLoadByLocal() {

        return "fileUpLoadByLocal";
    }

}
